package ThreadDemo;

public class ProducerConsumerDemo {
    public static void main(String[] args) {
        System.out.println("实验六 朱秉柯 183080106");
        WareHouse wa = new WareHouse();
        Producer producer =new Producer(wa,1);
        Consumer consumer = new Consumer(wa,1);
        new Thread (producer).start();
        new Thread (consumer).start();
    }
}
